package util.http;

import com.user.domain.User;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

import java.net.URI;

public class RestTemplateTest {

    private static RestTemplate restTemplate = new RestTemplate();


    public static void main(String[] args){
        ResponseEntity<User> o=restTemplate.postForEntity("http://182.92.120.188:8011","",User.class);
        System.out.println(o);
    }
}
